//--------------------------------------------------------------------------
// 
//  Copyright (c) Christian Liensberger.  All rights reserved. 
// 
//  Licensed under GPL v2. See official license for details.
// 
//--------------------------------------------------------------------------

using System;
using System.IO;

namespace Chili.Imagizer
{
	/// <summary>
	/// The EventArgs used by the event fired by the ImagesLoader class.
	/// </summary>
	public sealed class ImageLoadedEventArgs : EventArgs
	{
		private FileInfo _file;

		/// <summary>
		/// Creates a new instance of the ImageFoundEventArgs Class.
		/// </summary>
		/// <param name="file">The file that is processed.</param>
		internal ImageLoadedEventArgs(FileInfo file)
		{
			if (file == null)
				throw new ArgumentNullException("file");

			_file = file;
		}

		/// <summary>
		/// Gets the file that is currently processed.
		/// </summary>
		public FileInfo File
		{
			get { return _file; }
		}
	}
}
